@extends('admin.readLayout')
@section('title','套餐详情')
@section('content')
    <blockquote class="layui-elem-quote">套餐详情</blockquote>

        <div class="layui-colla-content layui-show">
            <p><img src="{{asset('storage/'.$model->thumb)}}"/></p>
            <p>套餐名称：{{$model->title}}</p>
            <p>套餐价格：￥{{number_format($model->price,2)}}</p>
            <p>套餐价值：{{$model->times}}次</p>
            <p>返利方式：{{\App\Http\Controllers\Admin\Business\Service\Combo::getRateTypeList()[$model->rate_type]}}</p>
            <p>返利比率：
                        上级：{{$model->rate_type==$rate_type_user?$model->rate:$sysRate['rate']}}%

                        顶级：{{$model->rate_type==$rate_type_user?$model->top_rate:$sysRate['top_rate']}}%
            </p>
            <p>描述：{{$model->desc}}</p>
            <p>详情：</p>
            <pre>
                {!! $model->content !!}
            </pre>
        </div>
@endsection
@section('script')
    <script>
        //注意：折叠面板 依赖 element 模块，否则无法进行功能性操作
        layui.use('element', function(){
            var element = layui.element;

            //…
        });
    </script>
@endsection